// models/productVA.js
module.exports = (sequelize, DataTypes) => {
    const ProductVA = sequelize.define('ProductVA', {
        rjCode: {
            type: DataTypes.STRING,
            primaryKey: true,
            references: {
                model: 'Product',
                key: 'rjCode'
            }
        },
        vaID: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            references: {
                model: 'VA',
                key: 'id'
            }
        }
    }, {
        tableName: 'ProductVA',
        timestamps: false
    });

    return ProductVA;
};